import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '../views/home.vue'

Vue.use(VueRouter)

const routes = [
  // 选择车牌
  {
    path: '/',
    name: 'home',
    component: home
  },
  // 支付
  {
    path: '/payment',
    name: 'payment',
    component: () => import('../views/payment.vue')
  },
  // 超时计费
  {
    path: '/overtime',
    name: 'overtime',
    component: () => import('../views/overtime.vue')
  },
  // 支付成功
  {
    path: '/success',
    name: 'success',
    component: () => import('../views/success.vue')
  },
  // 记时
  {
    path: '/time',
    name: 'time',
    component: () => import('../views/time.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
